import request from "@/utils/request";

export const getProListAPI = (params) => request.get("/pro/list", {
    params: params,
});

// 更新秒杀
export const updateIsseckillAPI = (params) => request.post("/pro/updateFlag", Object.assign({ type: "isseckill" }, params));
export const updateIsrecommendAPI = (params) => request.post("/pro/updateFlag", {
    type: "isrecommend",
    ...params,
});


export const getCategoryAPI = (params) => request.get("/pro/getCategory", {
    params: params,
});

export const searchProAPI = (params) => request.post("/pro/searchPro", params);

export const getProDetailAPI = (params) => request.get("/pro/detail", {
    params: params,
});



